#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include "map.h"
#include "cube.h"
#include <QTimer>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    MainWindow(QWidget *parent = 0, QString newFilepath = "", QString gameFile = "");
    ~MainWindow();


    //QString getFilepath() { return filepath; }
    //void setFilepath(QString newPath) { filepath = newPath; }

    void paintEvent(QPaintEvent *event);

    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);

    QString shipFile();


private:
    Ui::MainWindow *ui;
    Map *gameMap;
    QString filepath;
<<<<<<< .mine
    QTimer *gameTimer;
    bool paused;
=======
    QImage bg;
    QTimer *gameTimer;
    int counter;
>>>>>>> .r36

signals:
     void shipCrashed();
     void timerStart();
};

#endif // MAINWINDOW_H
